package com.yoda.mall.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yoda.mall.model.entity.sms.HomeAdvertise;

import java.time.LocalDateTime;
import java.util.List;

public interface HomeAdvertiseApi {
    void createAdvertise(HomeAdvertise homeAdvertise);

    void deleteAdvertiseByIds(List<Long> ids);

    Page<HomeAdvertise> getAdvertiseListPage(LocalDateTime endTime, String name, Integer type, Integer pageNum, Integer pageSize);

    void updateAdvertise(HomeAdvertise homeAdvertise);

    HomeAdvertise getAdvertiseById(Long id);
}
